@extends('lay.layout')
@section('content')
    <div class="ranknav width">
        <a href="{{route('ranking',['keyword'=>$search['keyword'],'oid'=>1])}}"
           class="rank1 @if($search['oid']==1|| $search['oid']==0) active @endif"><i class="iconfont icon-31xuanze"></i></a>
        <a href="{{route('ranking',['keyword'=>$search['keyword'],'oid'=>2])}}"
           class="rank2 @if($search['oid']==2) active @endif"><i class="iconfont icon-31xuanze"></i></a>
        <a href="{{route('ranking',['keyword'=>$search['keyword'],'oid'=>3])}}"
           class="rank3 @if($search['oid']==3) active @endif"><i class="iconfont icon-31xuanze"></i></a>
        <a href="{{route('ranking',['keyword'=>$search['keyword'],'oid'=>4])}}"
           class="rank4 @if($search['oid']==4) active @endif"><i class="iconfont icon-31xuanze"></i></a>
    </div>
    <div class="products">
        <div class="width">
            @include('lay.oneGoods')
        </div>
        <div style="clear:both;"></div>
    </div>
    <div class="pages width">
        <ul class="pagination">
            {{ $list->appends($search)->links() }}
        </ul>
    </div>
@endsection





